package xin.yangshuai.html01.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * IndexController
 *
 * @author shuai
 * @date 2023/1/18
 */
@Controller
public class IndexController {

    @RequestMapping({"index", "/"})
    public String index(String info, ModelMap modelMap) {
        modelMap.put("info", info);
        return "index";
    }

}
